package org.hpin.assetImport.dao;

import java.util.List;

import org.hpin.asset.entity.Borrowinfo;
import org.hpin.asset.entity.Suppliers;
import org.hpin.common.core.orm.BaseDao;
import org.hpin.common.core.orm.BaseEntity;
import org.springframework.stereotype.Repository;

@Repository()
public class AssetImportDao extends BaseDao {
	
	public BaseEntity findSupply(String name){
		String hql="from Suppliers a where a.name=?";
		List<Suppliers> list=this.getHibernateTemplate().find(hql, name);
		if(list.size()==0){
			return null;
		}else{
			return list.get(0);
		}
	}

}
